<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserShopFeedbackBusinTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_shop_feedback_busin', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->comment('用户ID');
            $table->string('user_name',20)->comment('用户昵称');
            $table->string('mobile',20)->comment('手机号码');
            $table->string('content',255)->comment('内容');
            $table->string('type',30)->default('user')->comment('类型');
            $table->string('os_version',32)->comment('系统版本号');
            $table->string('phone_type',32)->comment('手机型号');
            $table->string('version_code',32)->comment('app版本');
            $table->integer('city_id')->default(1)->comment('城市id');
            $table->integer('shop_id')->default(0)->comment('商家id');
            $table->tinyInteger('status',4)->default(0)->comment('状态，0未处理1已处理');
            $table->integer('admin_user_id')->default(0)->comment('操作人id');
            $table->string('note',512)->comment('后台处理内容');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('user_shop_feedback_busin');
    }
}
